package db.nio.length.field;

import db.nio.ChannelContext;
import db.nio.Processor;


/**
 * Created by root on 10/31/16.
 */
public class ClientProcessor implements Processor<String>{

    @Override
    public void doProcessor(String data, ChannelContext context) {
        System.out.println("client receive:"+data);
    }

    @Override
    public void doException(Throwable e, ChannelContext context) {
        e.printStackTrace();
        System.out.println("exception");
    }

    @Override
    public void doClose(ChannelContext context) {
        context.close();
        System.out.println("close");
    }

}
